package com.ruoyi.platform.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.platform.mapper.MWarningPushMapper;
import com.ruoyi.platform.domain.MWarningPush;
import com.ruoyi.platform.service.IMWarningPushService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author dataControl
 * @date 2025-09-15
 */
@Service
public class MWarningPushServiceImpl implements IMWarningPushService 
{
    @Autowired
    private MWarningPushMapper mWarningPushMapper;

    /**
     * 查询【预警推送】
     * 
     * @param warningPushId 【预警推送】主键
     * @return 【预警推送】
     */
    @Override
    public MWarningPush selectMWarningPushByWarningPushId(String warningPushId)
    {
        return mWarningPushMapper.selectMWarningPushByWarningPushId(warningPushId);
    }

    /**
     * 查询【预警推送】列表
     * 
     * @param mWarningPush 【预警推送】
     * @return 【预警推送】
     */
    @Override
    public List<MWarningPush> selectMWarningPushList(MWarningPush mWarningPush)
    {
        return mWarningPushMapper.selectMWarningPushList(mWarningPush);
    }

    /**
     * 新增【预警推送】
     * 
     * @param mWarningPush 【预警推送】
     * @return 结果
     */
    @Override
    public int insertMWarningPush(MWarningPush mWarningPush)
    {
        mWarningPush.setCreateTime(DateUtils.getNowDate());
        return mWarningPushMapper.insertMWarningPush(mWarningPush);
    }

    /**
     * 修改【预警推送】
     * 
     * @param mWarningPush 【预警推送】
     * @return 结果
     */
    @Override
    public int updateMWarningPush(MWarningPush mWarningPush)
    {
        return mWarningPushMapper.updateMWarningPush(mWarningPush);
    }

    /**
     * 批量删除【预警推送】
     * 
     * @param warningPushIds 需要删除的【预警推送】主键
     * @return 结果
     */
    @Override
    public int deleteMWarningPushByWarningPushIds(String[] warningPushIds)
    {
        return mWarningPushMapper.deleteMWarningPushByWarningPushIds(warningPushIds);
    }

    /**
     * 删除【预警推送】信息
     * 
     * @param warningPushId 【预警推送】主键
     * @return 结果
     */
    @Override
    public int deleteMWarningPushByWarningPushId(String warningPushId)
    {
        return mWarningPushMapper.deleteMWarningPushByWarningPushId(warningPushId);
    }
}
